﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Home.Domain.Entities
{
    /// <summary>
    /// 报价
    /// </summary>
    public class QuoteProduct
    {
        /// <summary>
        /// 报价Id
        /// </summary>
        [DisplayName("报价Id")]
        public int? Id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        [DisplayName("产品名称")]
        [StringLength(20, ErrorMessage = "长度不能超过20个字符")]
        [Required(ErrorMessage = "名称不能为空")]
        public string ProductName { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        [DisplayName("描述")]
        [StringLength(50, ErrorMessage = "描述长度不能超过50个字符")]
        public string Description { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        [Required(ErrorMessage = "价格不能为空")]
        [DisplayName("价格")]
        public decimal? Price { get; set; }
        public int? QuoteId { get; set; }
        public virtual Quote QuoteEntitis { get; set; }
    }
}
